import React, {Component} from 'react';
import {Descriptions, Divider} from "antd";
import './index.less'
import memoryUtils from '../../utils/memoryUtils'

/*
* 求职者信息路由*/
export default class ResumeDetail extends Component {

    //为第一次render()准备数据
    componentWillMount() {
    }

    //发异步ajax请求
    componentDidMount() {
    }

    render() {
        //读取状态数据
        const resumeDetail=memoryUtils.resumeDetail
        return (
            <div className="resume">
                <Divider orientation="left">基本信息</Divider>
                <Descriptions bordered column={2} size={"middle"}>
                    <Descriptions.Item label="姓名">{resumeDetail.name}</Descriptions.Item>
                    <Descriptions.Item label="电话">{resumeDetail.phone}</Descriptions.Item>
                    <Descriptions.Item label="性别">{resumeDetail.gender}</Descriptions.Item>
                    <Descriptions.Item label="年龄">{resumeDetail.age}</Descriptions.Item>
                    <Descriptions.Item label="学历">{resumeDetail.education}</Descriptions.Item>
                    <Descriptions.Item label="籍贯">{resumeDetail.city}</Descriptions.Item>
                    <Descriptions.Item label="现居住地">{resumeDetail.location}</Descriptions.Item>
                    <Descriptions.Item label="求职状态">{resumeDetail.status}</Descriptions.Item>
                </Descriptions>
                <Divider orientation="left">工作经验</Divider>
                <Descriptions bordered column={3} >
                    <Descriptions.Item label="工作时间">{resumeDetail.worktime}</Descriptions.Item>
                    <Descriptions.Item label="所在行业">{resumeDetail.now_trade}</Descriptions.Item>
                    <Descriptions.Item label="岗位名称">{resumeDetail.now_postion}</Descriptions.Item>

                </Descriptions>
                <Divider orientation="left">求职期望</Divider>
                <Descriptions bordered column={3}>
                    <Descriptions.Item label="期望职位">{resumeDetail.exp_postion}</Descriptions.Item>
                    <Descriptions.Item label="期望行业">{resumeDetail.exp_trade}</Descriptions.Item>
                    <Descriptions.Item label="期望薪资">{resumeDetail.exp_salary}</Descriptions.Item>
                </Descriptions>
                <Divider orientation="left">不接受项</Divider>
                <Descriptions bordered column={2} >
                    <Descriptions.Item label="排斥行业">{resumeDetail.rej_trade}</Descriptions.Item>
                    <Descriptions.Item label="排斥工作">{resumeDetail.rej_postion}</Descriptions.Item>
                </Descriptions>
            </div>
        )
    }
}
